//
//  SecondTableViewCell.m
//  QYer
//
//  Created by lanou on 16/8/11.
//  Copyright © 2016年 CaiZhuYu. All rights reserved.
//

#import "SecondTableViewCell.h"

@implementation SecondTableViewCell

- (void)setValueWithModel:(New_DiscountModel *)model
{
    [self.imageV sd_setImageWithURL:[NSURL URLWithString:model.photo] placeholderImage:[UIImage imageNamed:@"1.jpg"]];
    self.titleLabel.text = model.title;
    self.discountLabel.text = model.priceoff;
    NSString *str = model.price;
    NSArray *arr = [str componentsSeparatedByString:@">"];
    NSMutableString *str1 = [arr[1] mutableCopy];
    [str1 deleteCharactersInRange:(NSMakeRange(str1.length - 4, 4))];
    self.priceLabel.text = arr[1];
    self.priceLabel.text = str1;
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
